﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="frmMonografia.aspx.cs" Inherits="frmMonografia" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style3
        {
            height: 23px;
        }
        .style4
        {
            height: 141px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

      <h1> Monografia de Producto</h1>
      <p> 
          <table style="width:100%;">
              <tr>
                  <td class="style4" style="font-weight: bold">
                      Información Nutricional Complementaria<br />
                      <asp:TextBox ID="TextBox1" runat="server" Height="83px" TextMode="MultiLine" 
                          Width="296px"></asp:TextBox>
                      <br />
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                          ControlToValidate="TextBox1" ErrorMessage="Completar" Font-Bold="True" 
                          ForeColor="#FF3300"></asp:RequiredFieldValidator>
                  </td>
                  <td class="style4" style="font-weight: bold">
&nbsp;Técnica de Elaboración<br />
&nbsp;<asp:TextBox ID="TextBox2" runat="server" Height="84px" TextMode="MultiLine" 
                          Width="285px"></asp:TextBox>
                      <br />
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                          ControlToValidate="TextBox2" ErrorMessage="Completar" Font-Bold="True" 
                          ForeColor="#FF3300"></asp:RequiredFieldValidator>
                  </td>
                  <td class="style4">
                      </td>
              </tr>
              <tr>
                  <td style="font-weight: bold">
                      Marco Legal<br />
                      <asp:TextBox ID="TextBox8" runat="server" Height="73px" TextMode="MultiLine" 
                          Width="296px"></asp:TextBox>
                  </td>
                  <td>
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
              </tr>
              <tr>
                  <td>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                          ControlToValidate="TextBox8" ErrorMessage="Completar" Font-Bold="True" 
                          ForeColor="Red"></asp:RequiredFieldValidator>
                      <br />
                  </td>
                  <td>
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
              </tr>
              <tr>
                  <td class="style3" style="font-weight: bold">
                      Parómetros de Deterioro del Producto<br />
                      <asp:TextBox ID="TextBox3" runat="server" Height="20px" Width="296px"></asp:TextBox>
&nbsp;&nbsp;<br />
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                          ControlToValidate="TextBox3" ErrorMessage="Completar" Font-Bold="True" 
                          ForeColor="Red"></asp:RequiredFieldValidator>
                  </td>
                  <td class="style3" style="font-weight: bold">
&nbsp;Condiciones de Conservación<br />
&nbsp;<asp:TextBox ID="TextBox5" runat="server" Height="20px" Width="265px"></asp:TextBox>
                      <br />
                      &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                          ControlToValidate="TextBox5" ErrorMessage="Completar" Font-Bold="True" 
                          ForeColor="Red"></asp:RequiredFieldValidator>
                  </td>
                  <td class="style3">
                  </td>
              </tr>
              <tr>
                  <td class="style3" style="font-weight: bold">
                      Ensayos de Estabilidad Efectuados<br />
                      <asp:TextBox ID="TextBox4" runat="server" Height="20px" Width="296px"></asp:TextBox>
                      <br />
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                          ControlToValidate="TextBox4" ErrorMessage="Completar" Font-Bold="True" 
                          ForeColor="#FF3300"></asp:RequiredFieldValidator>
                  </td>
                  <td class="style3" style="font-weight: bold">
&nbsp;Vida Media o Lapso de aptitud<br />
&nbsp;<asp:TextBox ID="TextBox6" runat="server" Height="20px" Width="261px"></asp:TextBox>
                      <br />
                      &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                          ControlToValidate="TextBox6" ErrorMessage="Completar" Font-Bold="True" 
                          ForeColor="#FF3300"></asp:RequiredFieldValidator>
                  </td>
                  <td class="style3">
                      &nbsp;</td>
              </tr>
              <tr>
                  <td class="style3" style="font-weight: bold" valign="top">
                      Modo de Indicación de Nro de Lote<br />
                      <asp:TextBox ID="TextBox7" runat="server" Height="20px" Width="296px"></asp:TextBox>
                  </td>
                  <td class="style3">
                      &nbsp;</td>
                  <td class="style3">
                      &nbsp;</td>
              </tr>
              <tr>
                  <td class="style3" valign="middle">
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                          ControlToValidate="TextBox7" ErrorMessage="Completar" Font-Bold="True" 
                          ForeColor="#FF3300"></asp:RequiredFieldValidator>
                      <br />
                      <br />
          <asp:Button ID="Button1" runat="server" Height="28px" onclick="Button1_Click" 
              Text="Guardar y Continuar" Width="181px" />
&nbsp;&nbsp;&nbsp;&nbsp; <asp:Button ID="Button3" runat="server" CausesValidation="False" 
              Height="27px" onclick="Button3_Click" Text="Regresar" Width="180px" />
                      <br />
                  </td>
                  <td class="style3" valign="middle">
                      <br />
                      <br />
                  &nbsp;&nbsp;
          <asp:Button ID="Button2" runat="server" CausesValidation="False" Height="27px" 
              onclick="Button2_Click" Text="Borrar Todo" Width="180px" />
                  </td>
                  <td class="style3">
                      &nbsp;</td>
              </tr>
          </table>
      </p>
                      <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                          ConnectionString="<%$ ConnectionStrings:BD_SAFA_FINALConnectionString1 %>" 
                          DeleteCommand="DELETE FROM [T_TablaMonografia] WHERE [idMonografia] = @idMonografia" 
                          InsertCommand="INSERT INTO [T_TablaMonografia] ([idRNPA], [infoCompl], [marcoLegal], [tecnicaElab], [deterioro], [ensayo], [conserv], [aptitud], [modo]) VALUES (@idRNPA, @infoCompl, @marcoLegal, @tecnicaElab, @deterioro, @ensayo, @conserv, @aptitud, @modo)" 
                          ProviderName="<%$ ConnectionStrings:BD_SAFA_FINALConnectionString1.ProviderName %>" 
                          SelectCommand="SELECT [idMonografia], [idRNPA], [infoCompl], [marcoLegal], [tecnicaElab], [deterioro], [ensayo], [conserv], [aptitud], [modo] FROM [T_TablaMonografia]" 
                          UpdateCommand="UPDATE [T_TablaMonografia] SET [idRNPA] = @idRNPA, [infoCompl] = @infoCompl, [marcoLegal] = @marcoLegal, [tecnicaElab] = @tecnicaElab, [deterioro] = @deterioro, [ensayo] = @ensayo, [conserv] = @conserv, [aptitud] = @aptitud, [modo] = @modo WHERE [idMonografia] = @idMonografia">
                          <DeleteParameters>
                              <asp:Parameter Name="idMonografia" Type="Int32" />
                          </DeleteParameters>
                          <InsertParameters>
                              <asp:Parameter Name="idRNPA" Type="Int32" />
                              <asp:Parameter Name="infoCompl" Type="String" />
                              <asp:Parameter Name="marcoLegal" Type="String" />
                              <asp:Parameter Name="tecnicaElab" Type="String" />
                              <asp:Parameter Name="deterioro" Type="String" />
                              <asp:Parameter Name="ensayo" Type="String" />
                              <asp:Parameter Name="conserv" Type="String" />
                              <asp:Parameter Name="aptitud" Type="String" />
                              <asp:Parameter Name="modo" Type="String" />
                          </InsertParameters>
                          <UpdateParameters>
                              <asp:Parameter Name="idRNPA" Type="Int32" />
                              <asp:Parameter Name="infoCompl" Type="String" />
                              <asp:Parameter Name="marcoLegal" Type="String" />
                              <asp:Parameter Name="tecnicaElab" Type="String" />
                              <asp:Parameter Name="deterioro" Type="String" />
                              <asp:Parameter Name="ensayo" Type="String" />
                              <asp:Parameter Name="conserv" Type="String" />
                              <asp:Parameter Name="aptitud" Type="String" />
                              <asp:Parameter Name="modo" Type="String" />
                              <asp:Parameter Name="idMonografia" Type="Int32" />
                          </UpdateParameters>
                      </asp:SqlDataSource>
      <p> &nbsp;</p>
      <p> 
&nbsp;&nbsp;&nbsp;
          </p>

          <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
              ConnectionString="<%$ ConnectionStrings:BD_SAFA_FINALConnectionString1 %>" 
              DeleteCommand="DELETE FROM [T_TablaMonografia] WHERE [idMonografia] = @idMonografia" 
              InsertCommand="INSERT INTO [T_TablaMonografia] ([idRNPA], [infoCompl], [marcoLegal], [tecnicaElab], [deterioro], [ensayo], [conserv], [aptitud], [modo]) VALUES (@idRNPA, @infoCompl, @marcoLegal, @tecnicaElab, @deterioro, @ensayo, @conserv, @aptitud, @modo)" 
              ProviderName="<%$ ConnectionStrings:BD_SAFA_FINALConnectionString1.ProviderName %>" 
              SelectCommand="SELECT [idMonografia], [idRNPA], [infoCompl], [marcoLegal], [tecnicaElab], [deterioro], [ensayo], [conserv], [aptitud], [modo] FROM [T_TablaMonografia]" 
              UpdateCommand="UPDATE [T_TablaMonografia] SET [idRNPA] = @idRNPA, [infoCompl] = @infoCompl, [marcoLegal] = @marcoLegal, [tecnicaElab] = @tecnicaElab, [deterioro] = @deterioro, [ensayo] = @ensayo, [conserv] = @conserv, [aptitud] = @aptitud, [modo] = @modo WHERE [idMonografia] = @idMonografia">
              <DeleteParameters>
                  <asp:Parameter Name="idMonografia" Type="Int32" />
              </DeleteParameters>
              <InsertParameters>
                  <asp:Parameter Name="idRNPA" Type="Int32" />
                  <asp:Parameter Name="infoCompl" Type="String" />
                  <asp:Parameter Name="marcoLegal" Type="String" />
                  <asp:Parameter Name="tecnicaElab" Type="String" />
                  <asp:Parameter Name="deterioro" Type="String" />
                  <asp:Parameter Name="ensayo" Type="String" />
                  <asp:Parameter Name="conserv" Type="String" />
                  <asp:Parameter Name="aptitud" Type="String" />
                  <asp:Parameter Name="modo" Type="String" />
              </InsertParameters>
              <UpdateParameters>
                  <asp:Parameter Name="idRNPA" Type="Int32" />
                  <asp:Parameter Name="infoCompl" Type="String" />
                  <asp:Parameter Name="marcoLegal" Type="String" />
                  <asp:Parameter Name="tecnicaElab" Type="String" />
                  <asp:Parameter Name="deterioro" Type="String" />
                  <asp:Parameter Name="ensayo" Type="String" />
                  <asp:Parameter Name="conserv" Type="String" />
                  <asp:Parameter Name="aptitud" Type="String" />
                  <asp:Parameter Name="modo" Type="String" />
                  <asp:Parameter Name="idMonografia" Type="Int32" />
              </UpdateParameters>
          </asp:SqlDataSource>
      <p> 
          &nbsp;</p>
      <p> 
          &nbsp;</p> 
</asp:Content>

